const { createProxyMiddleware } = require('http-proxy-middleware');
module.exports = function(app){
    app.use(
        "/api",
        createProxyMiddleware({
            target: 'http://membership-tw.imageco.cn/uq',
            changeOrigin: true ,
            pathRewrite:{ "^/api":"" }
        })
    )
}